4 // Copyright (c) 2006 Microsoft Corporation. All rights reserved.
6 // The use and distribution terms for this software are contained in the file
7 // named license.txt, which can be found in the root of this distribution.
8 // By using this software in any fashion, you are agreeing to be bound by the
9 // terms of this license.
11 // You must not remove this notice, or any other, from this software.
16 namespace Microsoft
.JScript
{
20 public sealed class LenientNumberPrototype
: NumberPrototype
{
21 public new Object constructor
;
22 public new Object toExponential
;
23 public new Object toFixed
;
24 public new Object toLocaleString
;
25 public new Object toPrecision
;
26 public new Object toString
;
27 public new Object valueOf
;
29 internal LenientNumberPrototype(LenientFunctionPrototype funcprot
, LenientObjectPrototype parent
)
31 this.noExpando
= false;
32 //this.constructor is given a value by the proper constructor class
33 Type super
= typeof(NumberPrototype
);
34 this.toExponential
= new BuiltinFunction("toExponential", this, super
.GetMethod("toExponential"), funcprot
);
35 this.toFixed
= new BuiltinFunction("toFixed", this, super
.GetMethod("toFixed"), funcprot
);
36 this.toLocaleString
= new BuiltinFunction("toLocaleString", this, super
.GetMethod("toLocaleString"), funcprot
);
37 this.toPrecision
= new BuiltinFunction("toPrecision", this, super
.GetMethod("toPrecision"), funcprot
);
38 this.toString
= new BuiltinFunction("toString", this, super
.GetMethod("toString"), funcprot
);
39 this.valueOf
= new BuiltinFunction("valueOf", this, super
.GetMethod("valueOf"), funcprot
);